﻿namespace K9Nano.Application.Dtos;

public class PagedResultDto<TItem>
{
    /// <summary>
    /// 总数
    /// </summary>
    public int Total { get; set; }

    /// <summary>
    /// 当前页数据
    /// </summary>
    public IEnumerable<TItem> Items { get; set; }

    public PagedResultDto()
    {
        Items = [];
    }

    public PagedResultDto(int total, IEnumerable<TItem> items)
    {
        Total = total;
        Items = items;
    }
}
